@extends('shared.adminBase')
@section('title','金币汇总')
@section('content')
    <section class="content-header">
        <h1>金币汇总</h1>
        <ol class="breadcrumb">
            <li><a href="{{URL::金币汇总('AdminController@innerIndex')}}"><i class="fa fa-home"></i> 首页</a></li>
            <li class="active">活动管理</li>
        </ol>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <!-- /.box -->
                <div class="box">
                    <div class="box-header"></div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <div id="example1_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
                            <form id="form1" action="{{URL::action('GameController@getActivityList')}}"
                                  method="get">
                                <input type="hidden" name="page" value="{{$pagerSet->currentPage()}}">
                                <div class="row" style="margin-left: 5px;">
                                    <label>日期:</label>
                                    <div class="input-group date">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                        <input type="text" name="startDate" value="{{$form->startDate}}"
                                               class="form-control pull-right" id="startDate">
                                    </div>
                                    <span>-</span>
                                    <div class="input-group date">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                        <input type="text" name="endDate" value="{{$form->endDate}}"
                                               class="form-control pull-right" id="endDate">
                                    </div>
                                </div>
                            </form>
                            <br/>
                            <div class="row">
                                <div class="col-sm-12">
                                    <table id="example1" class="table table-bordered table-striped dataTable"
                                           role="grid" aria-describedby="example1_info">
                                        <thead>
                                        <tr role="row">
                                            <th><label><input type="checkbox" id="selectAll" onclick="selectAll(this);">全选</label>
                                            </th>
                                            <th>日期</th>
                                            <th>充值金额</th>
                                            <th>充值金币</th>
                                            <th>抽水金币</th>
                                            <th>闯关发送金币</th>
                                            <th>后台赠送金币</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        @foreach($pagerSet as $item)
                                            <tr role="row" class="odd">
                                                <td>{{$item->stati_date}}</td>
                                                <td>{{$item->recharge_amount}}</td>
                                                <td>{{$item->recharge_coin}}</td>
                                                <td>{{$item->commision_coin}}</td>
                                                <td>{{$item->mission_coin}}</td>
                                                <td>{{$item->give_coin}}</td>
                                            </tr>
                                        @endforeach
                                    </table>
                                </div>
                                <div class="row col-sm-12">
                                    <button class="btn btn-default"
                                            onclick="batchDelete();">
                                        删除
                                    </button>
                                </div>
                            </div>
                            <div class="row">
                                @include('shared.tablePaginate')
                            </div>
                            </form>
                        </div>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
@endsection
